//
//  DataBaseManeger.h
//  LoveCar
//
//  Created by dllo on 16/4/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB.h>
//#import <sqlite3.h>
@interface DataBaseManeger : NSObject

+(DataBaseManeger *)sharaInstance;

@property (nonatomic, strong) FMDatabase *db;

- (void)openDB;
- (void)closeDB;
- (void) createTable;
- (NSMutableArray *)selectAll;
-(void)insertDistance:(NSInteger)sum Time:(NSInteger)time_sec Data:(NSString*)month;
-(BOOL)isCollected:(NSString *)mID;
- (void)deleteMovieByMonth:(NSString *)month;


@end
